package icu.xuyijie.springbootlearning2.chapter1_2.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author 徐一杰
 * @date 2025/2/20 14:14
 * @description 把selectImports方法里匹配到的类全部注入到spring boot的容器里
 */
public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"icu.xuyijie.springbootlearning2.controller.*"};
    }
}
